package com.cashoutgaming.shared.match;

import java.io.Serializable;
import com.cashoutgaming.shared.game.GameType;
import com.cashoutgaming.shared.team.TeamLightDTO;

public class MatchDTO implements Serializable {

	private static final long serialVersionUID = 52634448082042229L;

	private Long id;
	private GameType gameType;
	private TeamLightDTO teamOne;
	private Integer teamOneWins;
	private TeamLightDTO teamTwo;
	private Integer teamTwoWins;
	private String wager;

	public MatchDTO() {

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public GameType getGameType() {
		return gameType;
	}

	public void setGameType(GameType gameType) {
		this.gameType = gameType;
	}

	public TeamLightDTO getTeamOne() {
		return teamOne;
	}

	public String getTeamOneName() {
		if (teamOne != null) {
			return teamOne.getName();
		}
		else {
			return null;
		}
	}

	public void setTeamOne(TeamLightDTO teamOne) {
		this.teamOne = teamOne;
	}

	public Integer getTeamOneWins() {
		return teamOneWins;
	}

	public void setTeamOneWins(Integer teamOneWins) {
		this.teamOneWins = teamOneWins;
	}

	public TeamLightDTO getTeamTwo() {
		return teamTwo;
	}

	public String getTeamTwoName() {
		if (teamTwo != null) {
			return teamTwo.getName();
		}
		else {
			return null;
		}
	}

	public void setTeamTwo(TeamLightDTO teamTwo) {
		this.teamTwo = teamTwo;
	}

	public Integer getTeamTwoWins() {
		return teamTwoWins;
	}

	public void setTeamTwoWins(Integer teamTwoWins) {
		this.teamTwoWins = teamTwoWins;
	}

	public String getWager() {
		return wager;
	}

	public void setWager(String wager) {
		this.wager = wager;
	}
}
